<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    var getMin = function () {
        // 定义函数getMin名称，定义函数的方法
        var min = 1;
        // 赋值给min
        for (i = 0; i <= arguments.length; i++) {
            if(min>arguments[i]){
                min=arguments[i]
            }
            
        }
     return min ;  
    //  调用函数
    }
    var a=getMin(1,2,23,-3,15,99,888,33,77)
    
        document.write("最小值为"+a)
</script>

</html>